<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <title>Document</title>

</head>
<body>
    <div id="app">
        <!-- 插值表达式 和v-text都是自动转义成文本-->
        {{myhtml}}<br/>
        <div v-text="myhtml"></div>
        <!-- 标签按照效果展示 -->
        <div v-html="myhtml"></div>
    </div>
   <script>
      
       var vue = new Vue({
           el:"#app",
           data:{
            msg:'hello vue',
            myhtml:'<h1>aaa</h1>'    
           }
        
       })
   </script>
</body>
</html>